.class Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;
.super Ljava/lang/Object;
.source "EditorAdapter.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->a(ILcom/jecelyin/editor/v2/common/d;Z)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:I

.field final synthetic b:Lcom/jecelyin/editor/v2/common/d;

.field final synthetic c:Z

.field final synthetic d:Lcom/jecelyin/editor/v2/ui/b;

.field final synthetic e:Lcom/jecelyin/editor/v2/adapter/EditorAdapter;


# direct methods
.method constructor <init>(Lcom/jecelyin/editor/v2/adapter/EditorAdapter;ILcom/jecelyin/editor/v2/common/d;ZLcom/jecelyin/editor/v2/ui/b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->e:Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    iput p2, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->a:I

    iput-object p3, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->b:Lcom/jecelyin/editor/v2/common/d;

    iput-boolean p4, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->c:Z

    iput-object p5, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->d:Lcom/jecelyin/editor/v2/ui/b;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3

    const/4 v0, -0x1

    if-ne p2, v0, :cond_1

    .line 1
    new-instance p2, Lcom/jecelyin/editor/v2/common/Command;

    sget-object v0, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->SAVE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {p2, v0}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a$a;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a$a;-><init>(Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;)V

    iput-object v0, p2, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->e:Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    invoke-static {v0}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->a(Lcom/jecelyin/editor/v2/adapter/EditorAdapter;)Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    .line 4
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->A()Lcom/jecelyin/editor/v2/ui/g;

    move-result-object v1

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/ui/g;->c()I

    move-result v1

    .line 5
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->A()Lcom/jecelyin/editor/v2/ui/g;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/ui/g;->e()I

    move-result v2

    if-eqz v2, :cond_0

    .line 6
    iget v2, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->a:I

    if-eq v1, v2, :cond_0

    .line 7
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->A()Lcom/jecelyin/editor/v2/ui/g;

    move-result-object v1

    iget v2, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->a:I

    invoke-virtual {v1, v2}, Lcom/jecelyin/editor/v2/ui/g;->c(I)V

    .line 8
    :cond_0
    iget-object v1, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->d:Lcom/jecelyin/editor/v2/ui/b;

    invoke-virtual {v0, p2, v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/common/Command;Lcom/jecelyin/editor/v2/ui/b;)V

    .line 9
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    goto :goto_0

    :cond_1
    const/4 v0, -0x2

    if-ne p2, v0, :cond_2

    .line 10
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 11
    iget-object p1, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->e:Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    iget p2, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->a:I

    iget-object v0, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->b:Lcom/jecelyin/editor/v2/common/d;

    iget-boolean v1, p0, Lcom/jecelyin/editor/v2/adapter/EditorAdapter$a;->c:Z

    invoke-static {p1, p2, v0, v1}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->a(Lcom/jecelyin/editor/v2/adapter/EditorAdapter;ILcom/jecelyin/editor/v2/common/d;Z)V

    goto :goto_0

    .line 12
    :cond_2
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    :goto_0
    return-void
.end method
